package pl.edu.amu.wmi.kino.visualjavafx.model.objects.shapes;

import pl.edu.amu.wmi.kino.visualjavafx.model.objects.*;
import java.util.ArrayList;


// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.C4950A37-F4DB-8F82-8DBE-498AAF59947E]
// </editor-fold> 
public class Rectangle extends Polygon implements java.io.Serializable{

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.A1CDEAD7-F7DA-4C22-4AA9-CAD8840F9833]
    // </editor-fold> 
    public Rectangle () {
    }

    @Override
    public ArrayList<Point> getPoint() {
        ArrayList<Point> x = new ArrayList<Point>();

        x.add(new Point(this.getVPos(),this.getHPos()));
        x.add(new Point(this.getVPos()+this.getSizeV(),this.getHPos()));
        x.add(new Point(this.getVPos()+this.getSizeV(),this.getHPos()+this.getSizeH()));
        x.add(new Point(this.getVPos(),this.getHPos()+this.getSizeH()));

        return x;
    }

    @Override
    public VisualObject shallowClone(){
        Rectangle res = (Rectangle) super.shallowClone();
        return res;
    }



}

